import request from '@/request';
import type {editFormData , addFormData} from '../@types/index';

/**获取我的学历*/
export const getSchool = (params: { page: number, pageSize: number ,school ?: string}) => {
    return request({
        url: '/api/v2/admin/getSchool',
        method: 'get',
        params
    })
} 

/**添加我的学历*/
export const addSchool = (data: addFormData ) => request({
    url: '/api/v2/admin/addSchool',
    method: 'post',
    data
}) 

/**删除我的学历*/
export const delSchool = (data: { ID: string }) => request({
    url: '/api/v2/admin/delSchool',
    method: 'post',
    data
})

/**更新我的学历*/
export const updateSchool = (data: editFormData) => request({
    url: '/api/v2/admin/updateSchool',
    method: 'post',
    data
})